<textarea cols='120' rows='30' id='file_content'>

</textarea>
<script type="text/javascript" src="/res/frame/js/t_thickbox.js"></script>
<input type="button" value="修改内容" onclick="edit_file_content();" />
<script>
var content = {content};
$("#file_content").val(content.data);

function edit_file_content(){
	var data = encodeURIComponent($("#file_content").val());
	var file_dir = encodeURIComponent(content.file_dir);
	$.ajax({
		url:'/admin/a-scaffold/setFile',
		method:'post',
		data: "sys_ajax=1&data="+data+"&file_dir="+file_dir,
		dataType:'json',
		success:function(json){
			if (json.success){
				alert('成功：');
			}else {
				alert("失败："+json.msg);
			}
		},
		error:function(e){
			alert(e.responseText);
		}
		
	});	
}
</script>